-- GENERATED SPELL FOR [Budd's Bodyguard] --


function spell0_25145(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25145', 5329, 1)
end

function spell1_25145(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25145', 661, 1)
end

function Sorts_25145(pUnit, Event)
local choix_sorts_25145 = math.random(0, 1)
if choix_sorts_25145 == 0 then
pUnit:RegisterEvent('spell0_25145', 1, 1)
end
if choix_sorts_25145 == 1 then
pUnit:RegisterEvent('spell1_25145', 1, 1)
end
end

function mob25145_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25145', math.random(1500, 3000), 1)
end

function mob25145_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25145_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25145_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25145, 1, 'mob25145_Action')
RegisterUnitEvent(25145, 2, 'mob25145_Leave')
RegisterUnitEvent(25145, 3, 'mob25145_Kill')
RegisterUnitEvent(25145, 4, 'mob25145_Die')
